﻿<UserControl x:Class="MakeZip.SimpleUI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="auto" Width="auto">
    <Grid Height="75">
		<TextBox Height="23" Margin="0,14,2,0" Name="textBox1"
				 VerticalAlignment="Top"
				 HorizontalAlignment="Right"
				 Width="200">
			<TextBox.Text>
				<Binding Path="TargetDirectory">
					<Binding.Mode>TwoWay</Binding.Mode>
					<Binding.UpdateSourceTrigger>
						PropertyChanged
					</Binding.UpdateSourceTrigger>

					<Binding.ValidationRules>
						<ExceptionValidationRule />
					</Binding.ValidationRules>
				</Binding>
			</TextBox.Text>
		</TextBox>

		<Label Height="23" HorizontalAlignment="Right"
				Margin="0,14,200,0"
				VerticalAlignment="Top"
				Width="61">Folder:</Label>

		<Button Height="21" Margin="0,0,100,11"
				Name="reset" VerticalAlignment="Bottom"
				Click="Reset_Click"
				HorizontalAlignment="Right"
				Width="66">Reset</Button>

		<Button Height="21" HorizontalAlignment="Right"
				Margin="0,0,13,11" Name="browse"
				VerticalAlignment="Bottom"
				Width="66"
				Click="Browse_Click">Browse</Button>

	</Grid>
</UserControl>
